const express = require('express')

const app = express()

app.get('/api/middleware', function(req, res) {
  res.cookie('cors-status', false, {domain: 'cross.com', maxAge: 100000, httpOnly: true})
  res.send({data: '6000端口发来贺电'})
})

app.listen(6000, function(req, res) {
  console.log("6000端口服务器也打开，可以访问接口")
})